package com.hgkj.system.mapper;

import com.hgkj.system.domain.SysRole;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface SysUserRoleMapper {

    List<SysRole> selectAllRoles();

    List<Long> selectRoleIdsByUserId(Long userId);

    int removeByUserId(Long userId);

    int batchInsert(@Param("userId") Long userId, @Param("roleIds") Long[] roleIds);
}
